Skip to content

Conversation

nielsdos
Copy link
Member

@nielsdos nielsdos commented Oct 10, 2024

zend_hash_get_current_key() does not return a string with incremented refcount, so it shouldn't get released. This release caused a UAF later when the attribute was destroyed. This wasn't noticed earlier because object_init_with_constructor() was only ever tested with interned strings.

Link: https://issues.oss-fuzz.com/issues/371721670

zend_hash_get_current_key() does not return a string with incremented
refcount, so it shouldn't get released. This release caused a UAF later
when the attribute was destroyed. This wasn't noticed earlier because
object_init_with_constructor() was only ever tested with interned
strings.
@nielsdos nielsdos requested a review from dstogov as a code owner October 10, 2024 21:08
@nielsdos nielsdos requested review from iluuu1994 and removed request for dstogov October 10, 2024 21:08
@nielsdos nielsdos requested a review from dstogov October 10, 2024 21:08
Copy link
Member

@iluuu1994 iluuu1994 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks correct, thank you!

@nielsdos nielsdos closed this in e0b1b69 Oct 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants